<template>
    <div class="registerbox">
        <el-card class="gray-card no-border no-margin-top" shadow="never">
        <el-form ref="form" :model="form" class="form" >
            <el-form-item label="仪器编码：">
                <span>12345</span>
            </el-form-item>
            <el-form-item label="仪器名称：">
                <span>12345</span>
            </el-form-item>
            <el-form-item label="检验项目：">
                <el-select v-model="form.pro" placeholder="请选择" >
                    <el-option
                        v-for="item in dateOptions"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value">
                    </el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="试剂编码：">
                <el-select v-model="form.pro" placeholder="请选择" >
                    <el-option
                        v-for="item in dateOptions"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value">
                    </el-option>
                </el-select>
            </el-form-item>

        </el-form>
        </el-card>
        <div class="details-foot">
            <div class="cell-btn">
                <el-button type="primary">立即创建</el-button>
                <el-button>取消</el-button>
            </div>
        </div><!------details-foot 底部预警------>
        
    </div>
</template>

<script>


export default {
    name: "addcheck",
    data() {
        return {
        deviceList: [],
        loading: false,
        redirect: undefined,
        registerShow:false,
        dateOptions:[],
        form: {
            dNo: '',
            dname: '',
            dpno: '',
            pro: '',
            sample: '',
            dep: [],
            mainMan: '',
            manager: '',
            date: '',
            factory: '',
            desc: '',
            func: '',
            dimg: '',
            dapp: '',
            }
        };
    },
    watch: {
        
    },
    created() {
        this.getDeviceList()
    },
    methods: {
        onSubmit(){

        },
        toBack(){
            this.$emit('func',false)
        },
        getDeviceList(){
            let deviceExp ={
                name:'全自动量子点荧光免疫分析仪QD-S1200',
                deviceNo:'NJYKD-JY-XT-000006',
                dep:'心脑血管科',
                connet:true,
                warning:false,
                lock:false,
                wait2Check:true
            }
            for(let i=0;i<25;i++){
                this.deviceList.push(deviceExp)
            }
        },
        toDeviceInfo(id){
            this.$router.push({path:"/device/deviceInfo/index"});
        }
    }
};
</script>